﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Reborn.Contracts.State
{
    /// <summary>
    /// 任务状态
    /// </summary>
    public enum TaskStatus
    {
        /// <summary>
        /// 创建
        /// </summary>
        Created = 0,
        /// <summary>
        /// 等待激活
        /// </summary>
        WaitingForActivation = 1,
        /// <summary>
        /// 等待运行
        /// </summary>
        WaitingToRun = 2,
        /// <summary>
        /// 运行中
        /// </summary>
        Running = 3,
        /// <summary>
        /// 等待子任务完成
        /// </summary>
        WaitingForChildrenToComplete = 8,
        /// <summary>
        /// 完成
        /// </summary>
        RanToCompletion = 9,
        /// <summary>
        /// 取消
        /// </summary>
        Canceled = -2,
        /// <summary>
        /// 失败
        /// </summary>
        Faulted = -1,
        /// <summary>
        /// 未知
        /// </summary>
        Unknown = -3,

    }
}
